from functools import reduce

add = lambda x, y: x + y
print(add(1, 2))
l = [1, 2, 3, 4]

l2 = list(map(lambda x: add(x, 1), l))
print(l2)

total = reduce(add, l)
print(total == sum(l))

evens = list(filter(lambda x: x % 2 == 0, l))
print(evens)
